#Fixed By Kriogen for Ancient Heroes
import sys
from com.l2emu.gameserver.instancemanager import TransformationManager;
from com.l2emu.gameserver.model import L2Transformation;
from com.l2emu.gameserver.model.quest import State
from com.l2emu.gameserver.model.quest import QuestState
from com.l2emu.gameserver.model.quest.jython import QuestJython as JQuest

qn = "32298_Caravan"

#NPCs
HUDE = 32298

class Quest (JQuest) :
 def __init__(self,id,name,descr): 
	JQuest.__init__(self,id,name,descr)

 def onTalk (Self,npc,player):
   st = player.getQuestState(qn)
   if (player.getTransformationId() == 101) :
     return "32298-1.htm"
   else :
     return "32298-2.htm"
   st.exitQuest(1)

QUEST = Quest(32298,qn,"custom")

QUEST.addStartNpc(HUDE)
QUEST.addTalkId(HUDE)